package com.jnxx.okr.domain;

import com.jnxx.basic.domain.BaseDomain;
import com.jnxx.task.domain.Task;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 实体类：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Kr extends BaseDomain{

    /**
     * 名称
     */
    private String name;
    /**
     * 内容
     */
    private String content;
    /**
     * 关联okr
     */
    private Long okrId;
    /**
     * 进度
     */
    private String progress;

    private Date creatTime = new Date();

    private Long creatStaffId;

    private List<Task> taskList;
    private List<Renew> renewList;


    public Boolean getSelected() {
        return false;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }

    @Override
    public String toString() {
        return "Kr{" +
        ", name=" + name +
        ", content=" + content +
        ", okrId=" + okrId +
        ", progress=" + progress +
        "}";
    }
}
